function verifyStatus() {
  return (req, res, next) => {
    if (req.app.locals.status === "WAITING") {
      return next();
    }
    return res.json({
      code: 0,
      msg: `服务器状态:${req.app.locals.status} 有任务正在进行中，请稍后再试`,
    });
  };
}

module.exports = verifyStatus;
